<template>
	<view>
		<view>
		<view style="height: 150rpx;background-color: aquamarine;margin: 50rpx;">
			测试数据{{index}}
			</view>
		</view>
		<view style="text-align: center;color: #aaa;margin: 50rpx;">----真没了----</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				count:20
			}
		},
		onLoad(options) {//oncreate
			console.log("navigator页面加载");
		},
		onShow() {//onStart
			console.log("navigator-----onShow");
		},
		onPullDownRefresh() {
			console.log("navigator-----onPullDownRefresh开始刷新");
			//数据更新
			setTimeout(()=>{
				uni.stopPullDownRefresh();
				console.log("navigator-----刷新完成");
			},2000)
		},
		onReachBottom() {
			//数据加载
			console.log("到底了...");
			if(this)
			this.count=this.count+20;
		},
		onReady() {
			console.log("navigator-----onReady");
		},
		onHide() {
			console.log("navigator-----onHide");
		},
		onUnload() {
			console.log("navigator-----onUnload");
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
